<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body style="padding:10px;">
<p>说明：
    <span>方法结构要体现主逻辑清晰（列点，体现核心思路）</span>
</p>
<br/>
<p>正例：</p>
<div style="margin:10px;padding:10px;border:1px solid #000000;white-space: pre-line;">
<br/>    /**
<br/>    * 根据站别体系的id,更新站别体系的有效数量,失效数量
<br/>    * @param id
<br/>    * @param effectiveNumber 有效数量
<br/>    * @param invalidationNumber 失效数量
<br/>    */
<br/>    private void updateLtgSiteFileSystemNum(Long id, Integer effectiveNumber, Integer invalidationNumber) {
<br/>        LtgSiteFileSystem updateFileSystem = new LtgSiteFileSystem();
<br/>        updateFileSystem.setId(id);
<br/>        if (effectiveNumber != null) {
<br/>            updateFileSystem.setEffectiveNumber(effectiveNumber);
<br/>        }
<br/>        if (invalidationNumber != null) {
<br/>            updateFileSystem.setInvalidationNumber(invalidationNumber);
<br/>        }
<br/>        super.setModifyInfo(updateFileSystem);
<br/>        this.systemService.updateById(updateFileSystem);
<br/>    }
</div>
<br/>
<p>反例：</p>
<div style="margin:10px;padding:10px;border:1px solid #000000;white-space: pre-line;">
<br/>    /**
<br/>    * 导入员工档案计算工龄
<br/>    *
<br/>    * @param empInfo
<br/>    */
<br/>    private void calculateWorkAge(EmpInfo empInfo) {
<br/>        //是否累加工龄
<br/>        String isSumWorkage = empInfo.getIsSumWorkAge();
<br/>        WorkAgeDto workAgeDto = new WorkAgeDto();
<br/>        if (String.valueOf(Constants.YnType.YES.getValue()).equals(isSumWorkage)) {
<br/>            Map&lt;String, Object&gt; map = new HashMap&lt;&gt;();
<br/>            map.put(&quot;work_years_entry_date&quot;, empInfo.getWorkYearsEntryDate());
<br/>            if (ToolUtil.isEmpty(empInfo.getWorkYearsEntryDate())) {
<br/>                map.put(&quot;work_years_entry_date&quot;, empInfo.getEntryDate());
<br/>            }
<br/>            map.put(&quot;entry_date&quot;, empInfo.getEntryDate());
<br/>            workAgeDto = empEmployBiz.getSumWorkAgeDays(empInfo.getId(), map, null);
<br/>        } else {
<br/>            if (ToolUtil.isNotEmpty(empInfo.getWorkYearsEntryDate())) {
<br/>                workAgeDto = empEmployBiz.setWorkDateDto(empInfo.getWorkYearsEntryDate(),new Date());
<br/>            }
<br/>        }
<br/>        if (ToolUtil.isNotEmpty(workAgeDto)) {
<br/>            empInfo.setWorkAgeValue(workAgeDto.getWorkAgeValue());
<br/>            empInfo.setWorkAgeMouth(workAgeDto.getMouth());
<br/>            empInfo.setWorkAgeYear(workAgeDto.getYear());
<br/>        }
<br/>    }

</div>
</body>
</html>